#!/bin/bash
cd /mnt/nas/work/webdav/openssl-1.1.1l
export ANDROID_NDK_HOME=/mnt/nas/work/ffmpeg-build-scripts/android-ndk-r21e
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-4.9/prebuillinux-x86_64/bin:$PATH
# 动态库存放路径
OUTPUT_PATH=/mnt/nas/work/webdav/lib/arm64-v8a/opensslLib
./Configure android-arm64-v8a \
-D__ANDROID_API__=21 \
shared \
no-ssl2 \
no-ssl3 \
no-comp \
no-hw \
no-engine \
--prefix=$OUTPUT_PATH \
--cross-compile-prefix=aarch64-linux-android- \
--with-ssl-method=SSLv23_client_method \
--with-ssl-socket-impl=linux


make clean
make -j$(nproc)
make install



